package com.haolijun.eecms.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

/**
 * @ClassName InsertNoticeForm
 * @Description TODO
 * @Author hljstart
 * @Date 2023/3/11 16:40
 * @Version 1.0
 */
@Data
@Schema(description = "添加公告表单")
public class InsertNoticeForm {

    @NotBlank(message = "title不能为空")
    @Schema(description = "公告标题")
    private String title;

    @NotBlank(message = "content不能为空")
    @Schema(description = "公告内容")
    private String content;

    @Schema(description = "上传图片地址")
    private String[] images;
}
